home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Util / R / Randomizer.cpt / Randomizer / random.txt < prev    next >
Encoding:
Text File  |  1987-05-16  |  4.3 KB  |  97 lines  |  [TEXT/text]

  1. Comment  From PUGH@CCC.MFENET on  8-MAY-1987 10 33 43.50 PDT
  2. Subject  Sneaky Lightspeed Pascal "Feature"
  3.  
  4. Well, I sure feel foolish.  I was nabbed by a feature of
  5. Lightspeed Pascal and it ends up making me look pretty inept.
  6. However, I will swallow my pride and tell what I have learned in
  7. order to prevent it from happening to someone else.
  8.  
  9. I was trying to fix a couple of little bugs in Randomizer, as you
  10. probably noticed.  I had placed the Randomizer source, project,
  11. and resource files in a folder deep in the my disk for permanent
  12. storage. When I wanted to work on them, I would copy them into
  13. the System Folder to do the development and then copy them back
  14. when I was done.  So far so good.
  15.  
  16. Well, I noticed that I had lost some of the changes I had made.
  17. So, after some experimentation I discovered that LSP was saving
  18. the pathname of the source code and modifying the copy that was
  19. back in the original directory, and not the copy in the System
  20. Folder, although it was using that project and that resource
  21. file.
  22.  
  23. A picture would be appropriate here, but you don't get one, you
  24. get a table instead.  These are the files used by LSP.
  25.  
  26.     HD System Folder     HD LSP Projects Randomizer
  27.     -----------------    ---------------------------
  28.     Random Project     <---    Random Project
  29.     Random.pas        Random.pas     <---
  30.     Random Resources <---    Random Resources
  31.  
  32. Needless to say, this is a bit sneaky of LSP, but to be expected
  33. since it manages the pathnames for you.  It is related to the
  34. problem where LSP cannot find a file and asks you to look for it,
  35. only to reveal it in the default directory.  LSP should look in
  36. the default directory first, and then search it's saved pathname.
  37. That would remove some of the ambiguity from the issue and would
  38. prevent it from asking you to look for all the files when you
  39. move a project to a new folder or disk.
  40.  
  41. The simplest fix is to modify the project file to use the source
  42. copy by holding down the Option key and double clicking on the
  43. source name in the project window.  This is equivalent to Remove
  44. and Add.  I had merely been double clicking to bring up the
  45. source and getting the wrong copy unknowingly.
  46.  
  47. Well, since I have been copying the source, project, and resource
  48. files back to their original locations (replacing the ones
  49. there), I have been losing my changes.  This means that the
  50. Randomizer in the archives is a goof and here is the correct one.
  51. Lord, please help me so that I don't have to post this again. I
  52. apologize profusely for the inconvienience and promise that
  53. everything now works as advertised.  I promise not to do this
  54. again.
  55.  
  56. People using Randomizer should be aware that the old BeepInit
  57. crashes frequently.  You should be using the one included with
  58. Randomizer, which is also archived as INIT-SOUND-BEEP.HQX on
  59. Sumex-Aim.Stanford.Edu.  People start using this and then blame
  60. Randomizer when the BeepInit crashes.  Honest, it's not my fault.
  61. Randomizer just makes sure that BeepInit eventually gets the one
  62. file that will crash it.
  63.  
  64. If you pass Randomizer along, I would appreciate it if you would
  65. keep the BeepInit and SoundInit files with it.  Thanks for your
  66. support.
  67.  
  68. Jon
  69.  
  70.          N         L                          pugh@nmfecc.arpa
  71.           M    A    L          National Magnetic Fusion Energy Computer Center
  72.            F    T    N             Lawrence Livermore National Laboratory
  73.             E         L                       PO Box 5509 L-561
  74.              C                           Livermore, California 94550
  75.               C                                (415) 423-4239
  76.  
  77.  
  78. here is the original help file
  79.  
  80. Ok, here is the new copy of the Randomizer Packit file.  It
  81. contains Randomizer, the INIT that switches your StartUpScreen,
  82. StartUpSound, and BeepSound.  It also contains the Backdrop INIT
  83. that keeps your StartUpScreen as your desktop, the SoundINIT that
  84. plays the StartUpSound, and BeepINIT, which substitutes a
  85. digitized sound for your system beep.
  86.  
  87. All of these are compatible with System 4.  All you have to come
  88. up with is a Mac and some sounds.  Disk space is also highly
  89. recommended as sounds are large.
  90.  
  91. I would like to thank all the people who have helped me make
  92. Randomizer as robust as it is.  This version has yet another
  93. small bug fix that had to do with exception handling.  It will
  94. now cope with most any combination of files and file names.  In
  95. the past it just went ahead and created a file if it did not
  96. exist.  Now it reports the situation.
  97.